import request from '@/utils/request.js';


//获取商品列表
export function goodsList(data) {
	return request({
		url: '/crystal_goods/list',
		method: "post",
		data
	})
}


export function crystalDetail(data) {
	return request({
		url: '/crystal_goods/crystalDetail',
		method: "post",
		data
	})
}

export function exchangeRecord(data) {
	return request({
		url: '/crystal_goods/exchangeRecord',
		method: "post",
		data
	})
}



//获取商品详情 
export function getGoodsInfo(data) {
	return request({
		url: '/crystal_goods/info',
		method: 'post',
		data
	})
}




export function exchange(data) {
	return request({
		url: '/crystal_goods/exchange',
		method: 'post',
		data
	})
}


export function getECardPass(data){
	return request({
		url: '/crystal_goods/getCardCode',
		method: 'post',
		data
	})
}
